//
//  ZFActivityView+alert.m
//  components
//
//  Created by fyzq on 2021/7/13.
//

#import "ZFActivityView+alert.h"

@implementation ZFActivityView (alert)
+(ZFActivityView *)activityView:(ContentBlock)block inView:(UIView *)view{
    ZFActivityView *activityView = [[ZFActivityView alloc] initWithView:view];
    [view addSubview:activityView];
    block(activityView.contentView);
    return activityView;
}
+(ZFActivityView *)activityView:(ContentBlock)block config:(ConfigActivityBlock)config inView:(UIView *)view{
    ZFActivityView *activityView = [[ZFActivityView alloc] initWithView:view];
    [view addSubview:activityView];
    block(activityView.contentView);
    config(activityView);
    return activityView;
}
///创建一个活动view activityView可以自定义添加view config->配置
+(ZFActivityView *)activityCallView:(ContentCallBackBlock)block config:(ConfigActivityBlock)config inView:(UIView *)view{
    ZFActivityView *activityView = [[ZFActivityView alloc] initWithView:view];
    [view addSubview:activityView];
    block(activityView.contentView,activityView);
    config(activityView);
    return activityView;
}
@end
